ol.control.BaseMap = function (options) {
    var element = $("<ul/>").addClass(options.className);
    /**
     * {'label':"矢量", "layer":"vec_w"}
     */
    var layers = options.layers;

    for(var i=0;i<layers.length;i++){
        var _li = $("<li/>").html(layers[i].label).data("attr", layers[i]);
        element.append(_li);
        _li.on("click", function () {
            element.children().removeClass("active");
            $(this).addClass("active");
            if(options.callback) options.callback($(this).data("attr"));
        });
        if(i===0) _li.addClass("active");
    }

    ol.control.Control.call(this, {
        element: element[0],
        target: null
    });
};
ol.inherits(ol.control.BaseMap, ol.control.Control);